<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title></title>
  <!--引入Vue-->
  <script type="text/javascript" src="../js/vue.js"></script>
</head>
<body>
<div class="root">
  <!--  向指定标签渲染文本内容-->
  <!--  v-html,可以当做html解析内容-->
  <h1 v-text="name"></h1>
</div>
</body>

<script type="text/javascript">
  new Vue({
    el: '.root',
    data: {
      name: 'Jack'
    }
  })
</script>
</html>
